package cn.mulanbay.api.system.service;

import cn.mulanbay.api.system.bean.RemoteWxAuthAccessUrl;
import cn.mulanbay.api.system.config.FeignRequestInterceptor;
import cn.mulanbay.api.system.factory.RemotePaymentFallbackFactory;
import cn.mulanbay.common.config.ServiceNameConstants;
import cn.mulanbay.common.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 支付服务
 *
 * @author fenghong
 */
@FeignClient(contextId = "remotePaymentService",
        value = ServiceNameConstants.PAYMENT_SERVICE,
        fallbackFactory = RemotePaymentFallbackFactory.class,
        configuration={FeignRequestInterceptor.class})
public interface RemotePaymentService {

    /**
     * 微信授权地址
     * @return
     */
    @GetMapping("/wechat/authAccessUrl")
    public R<RemoteWxAuthAccessUrl> authAccessUrl();

}
